package se.webbzon.oschi01.item;

public abstract class ItemEntry {
	
	public abstract int getId();
	
	public abstract ItemType getType();
	
	public abstract String getMod();
	
	public abstract String getUnlocalisedName();
	
	public abstract String getClassName();
	
	@Override public int hashCode() {
		return getId();
	}

	@Override public boolean equals(Object o) {
		if (o instanceof ItemEntry) {
			ItemEntry e = (ItemEntry) o;
			return getId() == e.getId() && ItemEntryComparator.isEqual(this, e);
		} else
			return false;
	}
	
	@Override public String toString() {
		return getId() + "," + getMod() + "," + getUnlocalisedName() + "," + getClassName();
	}

}
